package com.video.entity;

import com.baomidou.mybatisplus.annotation.*;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

import java.util.Date;

/**
 * (Comments)表实体类
 *
 * @author baoshuai
 * @since 2022-12-14 21:02:14
 */
@SuppressWarnings("serial")
@Data
@AllArgsConstructor
@NoArgsConstructor
@Accessors(chain = true)
@TableName("comments")
public class Comments {
    //评论id
    @TableId(type = IdType.AUTO)
    private Long id;
    //视频id
    private Long vlogId;
    //评论的用户id
    private Long userId;
    //评论被点赞数
    private Integer likeCounts;
    //评论内容
    private String content;
    //评论状态
    private int status;
    //状态：0-未删除 1-已删除
    @TableLogic
    private Integer delFlag;
    //评论时间
    @TableField(fill = FieldFill.INSERT)
    private Date createdTime;

}

